package org.example.mallweb.mallservice.mybatiscommon.favorite;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.mallcommon.projo.Favorite;
import org.example.mallcommon.vo.ArticleUserVo;
import org.example.mallcommon.vo.ArticleVo;

import java.util.List;
import java.util.Set;


@Mapper
/**
 * @author 韩先楚
 * 收藏表
 */

public interface FavoriteMapper extends BaseMapper<Favorite> {


    /**
     * 获取用户点赞的博客信息
     */
   List<ArticleUserVo> getLikeBlog(@Param("userId") Integer userId,@Param("list") Set<Long> articleIds);
}
